package t4tools.lepath.query.eval;

import java.util.HashMap;
import java.util.Map;

public final class Context {

	private Map<ContextKey, Object> context = new HashMap<>();
	private Map<String, Object> variableContext = new HashMap<>();
	
	public Object get(ContextKey key) {
		return context.get(key);
	}
	
	public void set(ContextKey key, Object value){
		context.put(key, value);
	}
	
	public void setVar(String key, Object value) {
		variableContext.put(key, value);
	}
	
	public Object getVar(String key) {
		return variableContext.get(key);
	}
}
